<form action="<?php echo $this->url(); ?>" method="POST">
	<?php if (isset($this->item)) : ?>
	<h1><?php echo $this->translate('Edit group'); ?></h1>
	<?php else: ?>
	<h1><?php echo $this->translate('Add group'); ?></h1>
	<?php endif; ?>
	<table class="form" style="border: 1px Lightid #134385;">
		<tr>
		    <td>
		        <label><?php echo $this->translate('Name'); ?></label>
		        <input type="text" name="name" value="<?php echo (isset($this->data['name']) ? $this->data['name'] : ''); ?>" />
		        <?php if (isset($this->errors['name']) && $this->errors['name']) : ?>
		        <ul class="errors"><li><?php echo $this->errors['name']; ?></li></ul>
		        <?php endif; ?>
		    </td>
	    </tr>
	    <tr>
		    <td>
		        <label><?php echo $this->translate('Is admin'); ?></label>
		        <input type="checkbox" name="admin" value="1" <?php echo (isset($this->data['admin']) && $this->data['admin'] ? 'checked="checked" ' : ''); ?>/>
		    </td>
	    </tr>
	</table>
	<input type="submit" id="back" style="margin-left: 10px" value="<?php echo $this->translate('Back to list'); ?>" />
	<?php if (isset($this->item)) : ?>
	<input type="submit" style="margin-left: 10px" name="apply" value="<?php echo $this->translate('Apply'); ?>" />
	<?php endif; ?>
	<input type="submit" name="save" value="<?php echo $this->translate('Save'); ?>" />
</form>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function () {
    $('#back').click(function () {
    	window.location.href = '<?php echo $this->url(array('action' => 'index', 'id' => null)); ?>';
    	return false;
	});
});
//]]>
</script>